<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">
    
    <title>Examinee Personal Information</title>
    
    <!-- Bootstrap core CSS -->
    <link rel="stylesheet" type="text/css" href="../css/bootstrap.css">
    
    <!-- Custom styles for this template -->
    <link rel="stylesheet" type="text/css" href="../css/navbar-fixed-top.css">
    
    <!-- Login styles for this page -->
    <link rel="stylesheet" type="text/css" href="../css/style.css">
    
    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="../js/ie-emulation-modes-warning.js"></script>
    
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <style type="text/css">
    body{
    	font-family: '微软雅黑';
		background-image:url(../images/eLogin.png);
    }
    </style>
</head>

<body>

    <!-- Fixed navbar -->
    <nav class="navbar navbar-own navbar-default navbar-fixed-top">
      <div class="container">
        <div class="navbar-header">
          <!--<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>-->
          <a class="navbar-brand" href="#"><font color="#ffffff">自主招生管理系统</font></a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
         <ul class="nav navbar-nav">
          	<li><a href="ExamPerInfo.html"><font color="#fff">查看个人信息</font></a></li>
            <li class="dropdown">
            	<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><font color="#ffffff">考试流程</font><span class="caret"></span></a>
          		<ul class="dropdown-menu" role="menu">
                    <li><a id="sign">网上报名</a></li>
                    <li><a id = "selectEp">选择考点</a></li>
                    <li><a  id = "print">打印准考证</a></li>
                    <li><a href="ExamScore.html">查询成绩</a></li>
              	</ul>
            </li>
          </ul>
          <ul class="nav navbar-nav navbar-right">
            <li><a onclick = "logout()"><font color="#ffffff">注销</font></a></li>
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </nav>

    <div class="inner-info" align="center">

      <!-- Main component for a primary marketing message or call to action -->
      <div class="es-reg" align="center" style="max-width:1100px">
      	<div class="examProcess">
        	<h2>个人基本信息</h2>
            <form class="perInfoTable">
            	<table class="table table-hover table-bordered">
                	<tr>
                    	<th>姓名</th><td id = "name">Lourean</td><th>性别</th><td id = "gender">女</td>
                    </tr>
                    <tr>
                    	<th >出生年月</th><td id = "birthday">1993mmdd</td><th>民族</th><td id = "nation">汉族</td>
                    </tr>
                    <tr>
                    	<th>政治面貌</th><td id = "policy">预备党员</td><th>身份证号码</th><td id = "id">120xxxyyyymmdd0000</td>
                    </tr>
                    <tr>
                    	<th>准考证号/报考号</th><td id= "registId">xxxxxxxx</td><th>高考号</th><td id = "eeid">暂未分配</td>
                    </tr>
                    <tr>
                    	<th>邮箱</th><td id = "email">xxxx@xxx.com</td><th>电话</th><td id = "phoneNo">15822223333</td>
                    </tr>
                    <tr>
                    	<th>报考院系</th><td>设计学院</td><td >报考专业（大类）</td><td id = "general">室内设计</td>
                    </tr>
                    <tr>
                    	<td>报考专业（小类）</td><td id = "sub">数字媒体</td><td>考试方式</td><td>现场面试</td>
                    </tr>
                    <tr>
                    	<th>报考审核状态</th><td id ="state">未通过</td>
                    	<th>考点信息</th><td id = "epAddress">xxx，xxx，xxxxx，xx</td>
                  
                    </tr>
                    
                    
                    <tr>
                    	<th>个人成绩</th><td id = "score" colspan="3">xx90 xx100 xx110</td>
                    </tr>
                </table>
            </form>
        </div>
        <div class="row">
        	<div class="col-md-3"></div>
        	<div class="col-md-3"><a class="btn btn-own btn-block" type="button" href="">信息有误，联系管理员</a><!--alert--></div>
        	<div class="col-md-3"><a class="btn btn-own btn-block" type="button" href="ExamProcess.html">返回</a></div>
            <div class="col-md-3"></div>
        </div>
      </div>
	</div> <!-- /container -->
    <footer class="examFooter">
        <p align="center">Copyright © 2015 ECNU・</p>
    </footer>


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="../js/jquery.js"></script>
    <script src="../js/bootstrap.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="../js/ie10-viewport-bug-workaround.js"></script>
      <script src="../js/logout.js"></script>
	<script>
  		$(document).ready(function()
  				{
  			$.ajax({
  				url:'../getSessionPara.action',
  				type:'post',
  				dataType:'json',
  				data:{
  					propertyName:'isLogin'
  				},
  				success:function(data)
  				{
  					if(data!="true")
  						{
  						alert("请先登录");
  						location.href="ExamLogin.htm";
  						}
  					else
  						{
  						$.ajax({
  			  				url:'../queryUser.action',
  			  				type:'post',
  			  				dataType:'json',
  			  				data:{userId:sessionStorage.getItem("userId")},
  			  				success:function(data)
  			  				{
  			  					var result = eval("("+data+")");
  			  					if(result.flag=="true")
  			  						{

  									var userInfo = eval("(" + result.userInfo + ")");
  									$("#id").text(userInfo.id);
  									$("#birthday").text(userInfo.birthday);
  									$("#policy").text(userInfo.policy);
  									$("#nation").text(userInfo.nation);
  									$("#email").text(userInfo.email);
  									$("#phoneNo").text(userInfo.phoneNo);
  									$("#name").text(userInfo.name);
  									$("#photo").attr("src",
  											"../" + userInfo.userPhoto);
  									$("#eeid").text(userInfo.eeid);
  									if(userInfo.admitId!="\"null\"")
  										$("#registId").text(userInfo.admitId);
  									$("#general").text(result.general);
  									$("#sub").text(result.sub);
  									$("#epname").text(result.ep);
  									$("#epAddress").text(result.epAddress);
  									$("#gender").text(userInfo.gender);
  									$("#score").text(result.sub+":"+result.score);
  									if(userInfo.state=="0")
  									{
  									$("#state").text("未报名");
  									}
  								else if(userInfo.state=="1")
  									{
  									$("#state").text("正在审核");
  									}
  								else if(userInfo.state=="2")
  									{
  									$("#state").text("审核通过");
  									}
  			  						}
  			  				}
  			  			})
  						}
  				}
  			})
  			
  				})
  	</script>


</body></html>